import React, { Component } from 'react'
import './index.css'

export default class Item extends Component {
    render() {
        const {todos} = this.props;
        return (
            <li>
                <label>
                    <input type="checkbox" defaultChecked={todos.done} />
                    <span>{todos.name}</span>
                </label>
                <button className="btn btn-danger" style={{ display: 'none' }}>删除</button>
            </li>
        )
    }
}
